<?php

define('TS_ROOT', './');
require(TS_ROOT .'common.php');
require(INC_DIR .'bbcode.php');

$user->session_start();

if (!$ts_cfg['terms'] && !IS_ADMIN) redirect('index.php');

$template->assign_vars(array(
	'TERMS_EDIT' => bbcode2html(sprintf($lang['TERMS_EMPTY_TEXT'], $domain_name)),
	'TERMS_HTML' => bbcode2html($ts_cfg['terms']),
));

print_page('terms.tmpl');